home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-03-27 | 2.3 KB | 102 lines | [TEXT/MPS ] |
- ###########################################################
- # Copyright © 1984-1990 by Apple Computer Inc. All rights reserved.
- # Clean up de-rezzed views
- # originally authored by Curtis Faith, used by permission.
- ###########################################################
-
-
- set exit 0
- IF {1} == ""
- target `GetFileName -b "Get" -m "View File to Cleanup"`
- else
- target "{1}"
- end
- if {status} == 0
- find •
- replace -c ∞ /[∂t]+/ ''
- else
- set exit 1
- exit
- end
- find •
- replace -c ∞ /∂/∂*≈∂*∂// ""
- find •
- replace -c ∞ /enabled,/ "enabled,ß∂n∂t"
- find •
- replace -c ∞ /disabled,/ "disabled,ß∂n∂t"
- find •
- replace -c ∞ /ithDocument,/ "ithDocument,ß∂n∂t∂t"
- find •
- replace -c ∞ /ilited,/ "ilited, ß∂n∂t∂t"
- find •
- replace -c ∞ /Click,/ "Click,ß∂n∂t∂t"
- find •
- replace -c ∞ /cTyping,/ "cTyping,ß∂n∂t∂t"
- find •
- replace -c ∞ /ertConstrain,/ "ertConstrain,ß∂n∂t∂t"
- find •
- replace -c ∞ /dornCols,/ "dornCols,ß∂n∂t∂t"
- find •
- replace -c ∞ /([¬ß]«1»)®1[∂n]«1»/ '®1'
- find •
- replace -c ∞ /([¬ß]«1»)®1[∂n]«1»/ '®1'
- find •
- replace -c ∞ /plain,0,∂{0x0,0x0,0x0∂},∂"∂"/ "systemFont"
- find •
- replace -c ∞ /plain,9,∂{0x0,0x0,0x0∂},∂"A∂"/ "applFont9"
- find •
- replace -c ∞ /plain,12,∂{0x0,0x0,0x0∂},∂"A∂"/ "applFont12"
- find •
- replace -c ∞ /plain,0,∂{0x0,0x0,0x0∂},∂"A∂"/ "applFont12"
- find •
- replace -c ∞ /∂{0x0,0x0,0x0∂}/ "black"
- find •
- replace -c ∞ /∂{0, 0, 0, 0∂}/ "noInset"
- find •
- replace -c ∞ /0b11110000000000000000000100000000/ "arrowsAndBackspace"
- find •
- replace -c ∞ /0b10000000/ "adnShadow"
- find •
- replace -c ∞ /0b1000000/ "adnRRect"
- find •
- replace -c ∞ /0b00000001/ "adnLineTop"
- find •
- replace -c ∞ /0b100000/ "adnOval"
- find •
- replace -c ∞ /0b10000/ "adnPatFill"
- find •
- replace -c ∞ /0b1111/ "adnFrame"
- find •
- replace -c ∞ /0b1000/ "adnLineRight"
- find •
- replace -c ∞ /0b100/ "adnLineBottom"
- find •
- replace -c ∞ /0b10/ "adnLineLeft"
- find •
- replace -c ∞ /0b0/ "adnNone"
- find •
- replace -c ∞ /adnNone,∂{1, 1∂}/ "noAdornment"
- find •
- replace -c ∞ /∂{∂{/ "∂{∂{∂n∂n∂t"
- find •
- replace -c ∞ /∂},∂'/ "∂}, ∂n∂n∂t∂'"
- find •
- replace -c ∞ /∂}∂};/ "∂n∂t∂}∂n∂};"
- find •
- replace -c ∞ /,([¬ ])®1/ ", ®1"
- find •
- replace -c ∞ /∂}, root/ "∂}, ∂n∂n∂troot"
- find •
- replace -c ∞ /, arrowsAndBackspace/ ",∂n∂t∂tarrowsAndBackspace"
- find •
- replace -c ∞ /∂};resource/ "∂};∂n∂nresource"
- find •
- replace -c ∞ /ß/ ""
- set exit 1
- IF "{1}" == "-s"
- save "{target}"
- end
- IF "{2}" == "-s"
- save "{target}"
- end
-